package com.weiyi.chat.api;

import android.provider.Contacts;
import android.provider.ContactsContract;

import com.weiyi.chat.domain.AllUserInfo;
import com.weiyi.chat.domain.UserList;

import java.io.File;

/**
 * Created by Administrator on 2016/12/5.
 */

public interface IUserInfo
{
    public interface Views
    {

        void onUpdataNick();
        void onUpdataAvarar(String headurl);
        void onGetUserInfoSuccess(AllUserInfo.BodyBean body);

        void showError(String msg);
    }

    public interface presenter
    {
        void updataAcvtar(File file, String token, String uid);
        void updataNickName(String new_nick, String intro, String tel, String token);
        void getUserInfo(String user_id);

//        void pswLogin(String account, String psw);//账号密码登录
//
//        void requestSms(String phoneNum);//请求验证码

        void loadingDatasFromCache();//缓存获取数据
    }

}
